package com.umeox.watch.moto.gallery.db.model;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

/**
 * Created by Rambo 2021/10/18
 * Describe:
 */
@Entity(tableName = AlbumInfo.TABLE_NAME)
public class AlbumInfo {

    @Ignore
    public static final String TABLE_NAME = "gallery_info";

    @PrimaryKey(autoGenerate  = true)
    @ColumnInfo(name = "_id")
    public long id;

    @ColumnInfo(name = "image_path")
    public String imagePath;

    @ColumnInfo(name = "image_name")
    public String imageName;

    @ColumnInfo(name = "image_server_path",defaultValue = "")
    public String imageServerPath;

    @ColumnInfo(name = "image_size")
    public long imageSize;

    @ColumnInfo(name = "take_time")
    public long takeTime;

    @ColumnInfo(name = "upload_time",defaultValue = "0")
    public long uploadTime;

    @ColumnInfo(defaultValue = "0")
    public int tag1;

    @ColumnInfo(defaultValue = "0")
    public int tag2;


    @Override
    public String toString() {
        return "AlbumInfo{" +
                "id=" + id +
                ", imagePath='" + imagePath + '\'' +
                ", imageName='" + imageName + '\'' +
                ", imageServerPath='" + imageServerPath + '\'' +
                ", imageSize=" + imageSize +
                ", takeTime=" + takeTime +
                ", uploadTime=" + uploadTime +
                ", tag1=" + tag1 +
                ", tag2=" + tag2 +
                '}';
    }
}
